package com.yzdmw.toutiao.history;

import android.os.Bundle;
import android.util.Log;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.navigation.NavArgument;
import androidx.navigation.NavController;
import androidx.navigation.NavDirections;
import androidx.navigation.NavGraph;
import androidx.navigation.Navigation;

import com.yzdmw.toutiao.R;
import com.yzdmw.toutiao.login.ui.LoginFragmentDirections;

public class HistoryActivity extends AppCompatActivity {
    public static final String TAG = "HistoryActivity";
    public static final boolean DEBUG = true;
    public String defaultTab = "历史";

    @Override
    protected void onCreate(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.history_activity);

        String tab = getIntent().getStringExtra("tab");
        if (DEBUG) Log.d(TAG, "tab:" + tab);
        defaultTab = tab;
        getSupportActionBar().hide();
//        NavController controller = Navigation.findNavController(this,R.id.container);
//        NavGraph graph = controller.getGraph();
//        NavArgument argument = new NavArgument.Builder()
//                .setDefaultValue(tab)
//                .build();
//        graph.addArgument("tab",argument);
    }
}
